/**
 * All Rights Reserved , Copyright (C) 2022 , 青岛鼎信通讯股份有限公司
 *
 * MmsProvinceCityMatchinfoActionAuto
 * 省份地市信息表新
 *
 * 修改纪录
 * 2022-01-10 版本：1.0 wangjielei 创建。
 * @version 版本：1.0
 * @author 作者：wangjielei
 * 创建日期：2022-01-10
 */

package com.topscomm.mms.controller.auto;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.topscomm.mms.MmsController;
import com.topscomm.mms.pojo.MmsProvinceCityMatchinfoEntity;
import com.topscomm.mms.service.IMmsProvinceCityMatchinfoService;
import com.topscomm.pub.vo.ResponseResult;

public class MmsProvinceCityMatchinfoControllerAuto extends MmsController<MmsProvinceCityMatchinfoEntity, IMmsProvinceCityMatchinfoService> {
	/**
	 *
	 * @description:
	 * @param paraMap
	 * @return
	 * @author: wangjielei
	 * @date: 2022-01-10
	 * @modify:
	 */
	@Override
	@GetMapping(value = "/dataCodeList")
	public ResponseResult<Object> dataCodeList(@RequestParam(required = false) Map<String, Object> paraMap) {
		super.dataCodeList(paraMap);
		Map<String, Object> codeMap = new HashMap<String, Object>();
		List<Map<String, Object>> deptcommoncodeList = datacodeCache.getCodeListMap("DeptCommonCodeTrack", " extendfield9 is null ",
				"nlssort(name,'NLS_SORT=SCHINESE_PINYIN_M')");
		codeMap.put("deptcommoncodeList", deptcommoncodeList);
		List<Map<String, Object>> namecodeList = datacodeCache.getCodeListMap("DeptCommonCode2", "", "sortcode");
		codeMap.put("namecodeList", namecodeList);
		List<Map<String, Object>> arealevelList = datacodeCache.getCodeListMap("AreaLevel", "", "sortcode");
		codeMap.put("arealevelList", arealevelList);
		List<Map<String, Object>> areatypeList = datacodeCache.getCodeListMap("AreaType", "", "sortcode");
		codeMap.put("areatypeList", areatypeList);
		List<Map<String, Object>> deptname2List = datacodeCache.getCodeListMap("DeptCommonCode2", "", "sortcode");
		codeMap.put("deptname2List", deptname2List);
		List<Map<String, Object>> enabledList = datacodeCache.getCodeListMap("CboYesNo", "", "sortcode");
		codeMap.put("enabledList", enabledList);
		return ResponseResult.ok(codeMap);
	}
}

